﻿//********************************************************************************//
//创建日期：<创建日期，2017-11-15>
//创建作者：<郭登杰，guodengjie@shanghai3h.com>
//功能说明：计划指标注销
//********************************************************************************//

using System;
using System.Web.UI;
using Entity;

namespace Web.Controls.LAIHANLC
{
    public partial class UCLHLCJiHuaZBZX : UserControl
    {
        #region 事件

        /// <summary>
        ///     页面加载事件
        /// </summary>
        protected void Page_Load(object sender, EventArgs e)
        {
            //第一次页面加载
            InitControl();
        }

        #endregion

        #region 属性

        /// <summary>
        ///     来函类型
        /// </summary>
        public eLaiHanLX LaiHanLX { get; set; }

        /// <summary>
        ///     来函流程
        /// </summary>
        public eLaiHanLCBH LaiHanLC { get; set; }

        #endregion

        #region 变量

        #endregion

        #region 方法

        /// <summary>
        ///     初始化控件
        /// </summary>
        private void InitControl()
        {
            UCLHLCLAIHANXX.LaiHanLC = LaiHanLC;
            UCLHLCYIJIANS.LaiHanLC = LaiHanLC;
            UCLHLCSHENPI.LaiHanLC = LaiHanLC;
            if (LaiHanLC == eLaiHanLCBH.业务员)
                lblFlowName.Text = "业务员建议";
            else if (LaiHanLC == eLaiHanLCBH.主任)
                lblFlowName.Text = "主任复核";
            else if (LaiHanLC == eLaiHanLCBH.节水科)
                lblFlowName.Text = "节水科审核";
            else if (LaiHanLC == eLaiHanLCBH.计财科)
                lblFlowName.Text = "计财科长复审";
            else if (LaiHanLC == eLaiHanLCBH.处长) lblFlowName.Text = "处长审批";
        }

        /// <summary>
        ///     以空条件加载列表
        /// </summary>
        public void LoadList()
        {
            UCLHLCLAIHANXX.BindList(null, null, null, null, null);
            UCLHLCLAIHANXX.SetListChecked(true);
        }

        #endregion
    }
}